<!--左侧导航-->
<aside class="lyear-layout-sidebar">

  <!-- logo -->
  <div id="logo" class="sidebar-header">
    <a href="{:url('admin/index/index')}"><img src="{$system.Logo}" title="LightYear" alt="LightYear" /></a>
  </div>
  <div class="lyear-layout-sidebar-info lyear-scroll">
    {php}$navTitle=!empty($navTitle) ? $navTitle : '';{/php}
    {php}$navSmall=!empty($navSmall) ? $navSmall : '';{/php}
    <nav class="sidebar-main">
      <ul class="nav-drawer">
        <li class="nav-item {$navTitle == '后台首页' ? 'active' : ''}"> <a href="{:url('admin/index/index')}"><i class="mdi mdi-home"></i>
            <span>后台首页</span></a> </li>
        <li class="nav-item {$navTitle == '网站配置' ? 'active' : ''}"> <a href="{:url('admin/config/index')}"><i class="mdi mdi-settings"></i>
            <span>网站配置</span></a> </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '数据统计' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-apps"></i> <span>数据统计</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall == '用户统计' ? 'active' : ''}"> <a href="{:url('admin/Analysis/user')}">用户统计</a> </li>
            <li class="{$navSmall == '帖子分析' ? 'active' : ''}"> <a href="{:url('admin/Analysis/post')}">帖子分析</a> </li>
            <li class="{$navSmall == '消费记录统计' ? 'active' : ''}"> <a href="{:url('admin/Analysis/record')}">消费记录统计</a> </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '用户管理' ? 'active open' : ''}" >
          <a href="javascript:void(0)"><i class="mdi mdi-account-circle"></i> <span>用户管理</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall=='用户列表' ? 'active' : '' }"> <a href="{:url('admin/User/index')}">用户列表</a> </li>
            <li class="{$navSmall=='用户消费记录' ? 'active' : '' }"> <a href="{:url('admin/user/record')}">用户消费记录</a> </li>
            <li class="{$navSmall=='用户充值记录' ? 'active' : '' }"> <a href="{:url('admin/user/recharge')}">用户充值记录</a> </li>
            <li class="{$navSmall=='回收站' ? 'active' : '' }"> <a href="{:url('admin/user/recovery')}">回收站</a> </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '管理员管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-account-tie"></i> <span>管理员管理</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall=='管理员列表' ? 'active' : '' }"> <a href="{:url('admin/Admin/index')}">管理员列表</a> </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '问答管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-comment-processing-outline"></i> <span>问答管理</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall=='帖子管理' ? 'active' : '' }"> <a href="{:url('admin/Post/index')}">帖子管理</a> </li>
            <li class="{$navSmall=='分类列表' ? 'active' : '' }"> <a href="{:url('admin/cate/index')}"> 分类列表</a> </li>
            <li class="{$navSmall=='回收站' ? 'active' : '' }"> <a href="{:url('admin/Post/recovery')}">回收站</a> </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '商品管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-snowflake"></i> <span>商品管理</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall=='商品列表' ? 'active' : '' }"> <a href="{:url('admin/product/list')}">商品列表</a> </li>
            <li class="{$navSmall=='商品分类' ? 'active' : '' }"> <a href="{:url('admin/product/cate')}"> 商品分类</a> </li>
            <li class="{$navSmall=='回收站' ? 'active' : '' }"> <a href="{:url('admin/product/recovery')}"> 回收站</a> </li>
          </ul>
        </li>
        <li class="nav-item nav-item-has-subnav {$navTitle == '订单管理' ? 'active open' : ''}">
          <a href="javascript:void(0)"><i class="mdi mdi-table-settings"></i> <span>订单管理</span></span></a>
          <ul class="nav nav-subnav">
            <li class="{$navSmall=='订单列表' ? 'active' : '' }"> <a href="{:url('admin/Order/order')}">订单列表</a> </li>
            <li class="{$navSmall=='物流公司列表' ? 'active' : '' }"> <a href="{:url('admin/Order/company')}"> 物流公司列表</a> </li>
            <li class="{$navSmall=='退货列表' ? 'active' : '' }"> <a href="{:url('admin/Order/return')}"> 退货列表</a> </li>
          </ul>
        </li>
      </ul>
    </nav>

    <div class="sidebar-footer">
      <p class="copyright">Copyright &copy; 2022. <a target="_blank" href="https://www.yjhub.top">豪来屋</a> All
        rights reserved.</p>
    </div>
  </div>

</aside>
<!--End 左侧导航-->